<?php
class Apps_View_Helper_LabelOrderReferenceType extends Apps_View_Helper_LabelBase {
    public $map = array(
        M_DbTable_Order::REFERENCE_TYPE_TOUR   		=> array('Tour', 'label-success'),
        M_DbTable_Order::REFERENCE_TYPE_CRUISE		=> array('Cruise', 'label-warning'),
        M_DbTable_Order::REFERENCE_TYPE_NOT_DEFINE	=> array('Chưa xác định', 'label-danger')
    );

    public function labelOrderReferenceType($type, $label=true) {
        return $this->map($type, $label);
    }
}